#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
#include"BSTree.h"

void Test()
{
	BSTree<int> bs;
	bs.insert(5);
	bs.insert(3);
	bs.insert(6);
	bs.insert(7);
	bs.insert(4);
	bs.insert(1);
	bs.insert(10);
	//bs.inOrder();
	////BSTNode<int>* node = bs.Find(10);
	////cout << node->_data << endl;
	bs.erase(1);
	bs.erase(4);
	cout << endl;
	bs.inOrder();
	cout << endl;
	
}
int main()
{
	Test();
	return 0;
}